<template>
	<div>
		<template v-if="isTexas">
			<span>{{ sbBlindScore || '-' }} /</span>
			<span>{{ bbBlindScore || '-' }}</span>
			<span v-if="straddleAmount">/ {{ straddleAmount }}</span>
			<span v-if="anteSwitch === 1">
				{{ `(${anteScore})` }}
			</span>
		</template>
		<template v-else>
			<span>{{ bbBlindScore || '-' }}</span>
		</template>
	</div>
</template>
<script>
export default {
	props: {
		gameTypeId: {
			type: Number,
			default: 0
		},
		tableType: {
			type: Number,
			default: 0
		},
		bbBlindScore: {
			type: Number,
			default: 0
		},
		sbBlindScore: {
			type: Number,
			default: 0
		},
		anteSwitch: {
			type: Number,
			default: 0
		},
		anteScore: {
			type: Number,
			default: 0
		},
		straddleAmount: {
			type: Number,
			default: 0
		}
	},
	computed: {
		// 德州：1，2001；AOF德州：3，2003
		isTexas() {
			return (
				[1, 3].includes(this.gameTypeId) ||
				[2001, 2003].includes(this.tableType)
			)
		}
	}
}
</script>
